@W-19036340 feat: add programmatic API for LWC dev server with JWT authentication#455
Open
@W-19036340 feat: add programmatic API for LWC dev server with JWT authentication#455
Conversation
Shinoni
commented
Jul 15, 2025
| expect(lwcDevServer.startLWCServer).to.be.a('function'); | ||
| }); | ||
|
|
||
| // it('calling startLWCServer returns an LWCServer', async () => { |
Collaborator
Author
There was a problem hiding this comment.
I uncommented and fixed this test.
bpbuch
reviewed
Jul 15, 2025
|
|
||
| /** | ||
| * Programmatic API for starting the local dev server | ||
| * This can be used to start the server without CLI |
Contributor
There was a problem hiding this comment.
I'm wondering if this is the right place for this API. Other consumers would be taking a dependency on the CLI plugin to access this API which seems a little odd.
Collaborator
There was a problem hiding this comment.
@Shinoni Lets hold off on merging this for now. I'm exploring a couple options for how we can do this with the CLI folks and then we can make a decision on where this code should live.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@W-12345678@
What does this PR do?
Adds a programmatic API for starting and managing LWC dev servers without using the CLI. This includes JWT authentication validation and a new LocalDevServerManager class for server lifecycle management.
What issues does this PR fix or reference?
This PR enables programmatic access to the LWC dev server functionality, allowing other tools and applications to start dev servers directly through code instead of only through CLI commands